<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/script/josn2.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/user/desc.js"></script>
</head>
<body>
<input type="hidden" id="id" th:value="${user.id}">
    <form class="layui-form" id="form">
            <div class="layui-form-item">
                <label class="layui-form-label">登录账号:</label>
                <div class="layui-input-block layui-col-md5">
                    <input type="text" name="title" readonly th:value="${user.name}" id="name" autocomplete="off"   class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码:</label>
                <div class="layui-input-block layui-col-md5">
                    <input type="text" name="title" th:value="${user.password}" id="password" lay-verify="required|password" autocomplete="off"   class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">笔名:</label>
                <div class="layui-input-block layui-col-md5">
                    <input type="text" name="title"  th:value="${user.author}" id="author" lay-verify="required|author" autocomplete="off"   class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱地址（接收用户评论等消息）:</label>
                <div class="layui-input-block layui-col-md5">
                    <input type="text" name="email"  th:value="${user.email}" id="email" lay-verify="required|email" autocomplete="off"   class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">头像:</label>
                <div class="layui-input-block layui-col-md5">
                    <button type="button" class="layui-btn" id="update_cover_btn">上传头像</button>
                    <input type="hidden" id="cover_img" name="touxiang"  th:value="${user.touxiang}">
                    <div class="layui-upload-list">
                        <img class="layui-upload-img" id="demo1" th:src="${user.touxiang}" width="200px">
                        <p id="demoText"></p>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">收款码:</label>
                <div class="layui-input-block layui-col-md5">
                    <button type="button" class="layui-btn" id="update_cover_btn2">上传支付宝/微信收款码</button>
                    <input type="hidden" id="cover_img2" name="touxiang"  th:value="${user.pay}">
                    <div class="layui-upload-list">
                        <img class="layui-upload-img" id="demo2" th:src="${user.pay}" width="200px">
                        <p id="demoText2"></p>
                    </div>
                </div>
            </div>

        <div class="layui-form-item">
            <label class="layui-form-label">收款姓名:</label>
            <div class="layui-input-block layui-col-md5">
                <input type="text" name="realName"  th:value="${user.realName}" id="realName" lay-verify="required" autocomplete="off"   class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-col-md-offset1" style="margin-bottom: 25px;">
            <div class="layui-btn" id="submit" lay-filter="form" lay-submit>保存</div>
        </div>


    </form>
</body>
</html>